package org.example.Server.mapper.homework;

import org.apache.ibatis.annotations.Mapper;
import org.example.Server.model.homework.*;

import java.util.List;

@Mapper
public interface StuHmkMapper {
    List<HmkStuListVO> getHmkStuList(Integer semesterId, Integer userId);

    void submitStuHmk(HmkStuDTO hmkStu);

    HmkStuVO showSubmitHmk(Integer stu_hmwk_id);

    HmkStuReview getStuHmkReview(Integer userId, Integer hmkId);

    Integer getHmkStage(Integer stuHmwkId);

    List<HmkStuEach> getStuEachList(Integer hmkId, Integer userId);

    List<HmkStuEach> getEachGroup(Integer hmkId, Integer userId, Integer eachCnt);

    Integer getEachCnt(Integer hmkId);

    void insertEachGroup(List<HmkStuEach> list, Integer userId, Integer hmkId);

    void updateStuHmk(HmkStuDTO hmkStu);

    HmkScoreDetail getHmkScoreDetail(Integer stuHmwkId);

    HmkStuEachVO getEachDetail(Integer stuHmkId, Integer userId);

    List<HmkStuEach> getEachMoreGroup(List<HmkStuEach> hmkStuEachList, Integer hmkId, Integer userId, int cnt);
}
